import request from '@/utils/request'

// 保存面试信息
export function saveIntvInfo(data: object) {
  return request({
    url: '/system/interview/saveIntvInfo',
    method: 'post',
    data: data
  })
}

// 获取面试信息
export function getIntvInfo() {
  return request({
    url: '/system/interview/getIntvInfo',
    method: 'get'
  })
}

export function getIntvInfoByDate(intvDate: Date) {
  return request({
    url: '/system/interview/getIntvInfoByDate/' + intvDate,
    method: 'get'
  })
}

export function clear() {
  return request({
    url: '/system/interview/clear',
    method: 'delete'
  })
}
